<div id="header">
    <div id="logo"><a href="index.php"><img src="static/images/logo2.gif" /></a></div>
    <div id="search">
        <table>
            <tr>
              <td><input type="text" name="search" class="search_text" value="请输入搜索内容" /></td>
              <td>
              <input type="radio" name="item" value="post" checked="checked" />&nbsp;主题
              <input type="radio" name="item" value="author" />&nbsp;作者
              </td>
              <td><input type="button" name="submit" class="search_btn" value="" /></td>
            </tr>
      </table>
    </div>
    {{if $isLogin neq 'y'}}
    <div id="method">
        <a href="login.php?ReturnUrl={{$visitorURL}}">登录</a>
        |
        <a href="passport.php">注册</a>
    </div>
    {{else}}
    <div id="method">
        <a href="user.php">{{$username}}</a>
        |
        <a href="passport.php">消息(0)</a>
        |
        <a href="logout.php?ReturnUrl={{$visitorURL}}">退出</a>
    </div>
    {{/if}}
</div>
